package com.code.generation.constant;

/**
 * @ProjectName: codegeneration
 * @Package: com.code.generation.constant
 * @Description:
 * @Author: DongJW
 * @CreateDate: 2020/11/29 11:15
 * @Version: 1.0
 */
public class Constants {
    /**
     * springboot项目
     */
    public static final String PROJECT_TYPE_SPRINGBOOT = "1";

    /**
     * springcloud项目
     */
    public static final String PROJECT_TYPE_SPRING_CLOUD = "2";

    /**
     * springcloudalibaba项目
     */
    public static final String PROJECT_TYPE_SPRING_CLOUD_ALIBABA = "3";


    /**
     * 注册中心 EUREKA
     */
    public static final String REGISTRY_EUREKA = "eureka";

    /**
     * 注册中心 NACOS
     */
    public static final String REGISTRY_NACOS = "nacos";


    /**
     * 网关 ZUUL
     */
    public static final String GATEWAY_ZUUL = "zuul";

    /**
     * 网关 spring cloud gateway
     */
    public static final String GATEWAY_SPRINGCLOUDGATEWAY = "springcloudgateway";

    /**
     * 数据库类型 mysql
     */
    public static final String DB_TYPE_MYSQL = "mysql";

    /**
     * 数据库类型 Oracle
     */
    public static final String DB_TYPE_ORACLE = "oracle";

    /**
     * mysql驱动链接
     */
    public static final String DB_DRIVER_MYSQL = "com.mysql.jdbc.Driver";

    /**
     * Oracle驱动链接
     */
    public static final String DB_DRIVER_ORACLE = "oracle.jdbc.driver.OracleDriver";

    /**
     * mysql url
     */
    public static final String DB_URL_MYSQL = "jdbc:mysql://[ip]:[port]/[dbname]";

    /**
     *Oracle url
     */
    public static final String DB_URL_ORACLE = "jdbc:oracle:thin:@[ip]:[port]:[dbname]";
}
